package cn.com.taurus.biz;

import cn.com.taurus.entity.SystemNotice;
import cn.com.taurus.impl.SystemNoticeImpl;
import cn.com.taurus.mapper.SystemNoticeMapper;
import cn.com.taurus.service.SystemNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @remark 系统公告实现类
 * @author Zht
 * @createTime 2021年6月23日 15点43分
 * @version 1.0
 */
@Service
public class SystemNoticeBiz {
    @Autowired
    SystemNoticeImpl systemNoticeImpl;

    public int addSystemNotice(SystemNotice systemNotice) throws NullPointerException{
        return systemNoticeImpl.addSystemNotice(systemNotice);
    }

    public int updateSystemNotice(SystemNotice systemNotice) throws NullPointerException{
        return systemNoticeImpl.updateSystemNotice(systemNotice);
    }

    public int deleteSystemNotice(int snId) throws NullPointerException{
        return systemNoticeImpl.deleteSystemNotice(snId);
    }
    public String selectSystemNotice(Integer sNid) {
        return systemNoticeImpl.selectSystemNotice(sNid);
    }
    public List<SystemNotice> queryAllSystemNotice(){
        return systemNoticeImpl.queryAllSystemNotice();
    }

    public List<SystemNotice> selectDimSystemNotice(SystemNotice systemNotice){
        return systemNoticeImpl.selectDimSystemNotice(systemNotice);
    }
}
